#!/usr/bin/env bash


main() {
    local foo=${1:-foo.sh}
    shift
    bash -n "${foo}"
    # shellcheck disable=SC1090
    $(set -n && source "${foo}")
}


main "$@"
